package com.producer.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.producer.entity.Goods;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import java.util.List;


/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author astupidcoder
 * @since 2021-04-24
 */
@Repository
public interface GoodsMapper {
  Goods  getTop();
  void updateGoods(Goods goods);
  /**
   *
   * 批量修改跟新
   */
  void batchUpdateGoods(@Param("list")List<Goods> list);

  List<Goods> getList();
}
